<?php
/**
* @package   Shankara Template
* @file      index.php
* @version   1.5.1 14 feb 2011
* @author    Shankara www.proinsurer.com.ua
* @copyright Copyright (C) 2010 Shankara Ukraine
*/

// no direct access
defined('_JEXEC') or die('Restricted access');
?>
<?php echo '<?xml version="1.0" encoding="utf-8"?' .'>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">
<head>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/960.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />

<script src="templates/<?php echo $this->template ?>/js/share42.js" type="text/javascript"></script>

<!--<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/jquery-ui-1.8.18.custom.css" type="text/css" />

<script src="templates/<?php echo $this->template ?>/js/jquery-1.7.1.min.js" type="text/javascript">jQuery.noConflict();</script>
<script src="templates/<?php echo $this->template ?>/js/ui/jquery.ui.core.min.js" type="text/javascript">jQuery.noConflict();</script>
<script src="templates/<?php echo $this->template ?>/js/ui/jquery.ui.widget.min.js" type="text/javascript">jQuery.noConflict();</script>
<script src="templates/<?php echo $this->template ?>/js/ui/jquery.ui.tabs.min.js" type="text/javascript">jQuery.noConflict();</script>

-->



<!--[if IE 6]><link rel="stylesheet" type="text/css" href="templates/<?php echo $this->template ?>/css/ie6.css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" href="templates/<?php echo $this->template ?>/css/ie.css" media="screen" /><![endif]-->
<!--[if gte IE 9]><style type="text/css">.gradient {filter: none;}</style><![endif]--> 

<?php
$user =& JFactory::getUser();
if ($user->get('guest') == 0 or $user->usertype == 'Registered') {
  $headerstuff = $this->getHeadData();
  $key1 = JURI::base(true). '/media/system/js/mootools.js';
  $key2 = JURI::base(true). '/media/system/js/caption.js';
  unset($headerstuff['scripts'][$key1], $headerstuff['scripts'][$key2]);
  $this->setHeadData($headerstuff);
}
?>

<jdoc:include type="head" />

</head>
 <?php flush(); ?>
 
 
<!-- Header -->
<div id="header">
	<div class="container_16">
	<div class="full_width_container" id="branding_signin">
		<div id="logo" class="grid_2 suffix_10">
			<!--noindex--><a href="<?php echo $this->baseurl ?>" rel="nofollow"><img border="0" alt="logotype 2log.ru" src="templates/<?php echo $this->template ?>/i/logo.png"></a><!--/noindex-->
		</div>
		<div class="grid_4">
			<div id="login" style="z-index: 1;">
				<? 
					$user =& JFactory::getUser();
					if ($user->get('guest') == 1) {
					echo '<a href="signin" class="sign_in right"><span>Войти</span></a>';
					} else {
					echo '<a href="index.php?option=com_user&task=logout&return=lw" class="sign_out right"><span>Выйти</span></a>';
					}
				?>
				
				
			</div>
		</div>
	</div>	
	
	</div>	
	<div class="clear"></div>
</div>
<!-- header -->	


<!-- Navigation -->	
<div id="navigation">
	<div class="container_16">
		<div id="private_office" class="grid_2">
				<?php if($this->countModules('privatemenu')) : ?>
					<jdoc:include type="modules" name="privatemenu" style="" />
				<?php endif; ?>
		</div>
		<div id="mainmenu">
			<div class="grid_10">
				<?php if($this->countModules('mainmenu')) : ?>
					<jdoc:include type="modules" name="mainmenu" style="" />
				<?php endif; ?>
				
				<?php if($this->countModules('mainmenu2')) : ?>
					<jdoc:include type="modules" name="mainmenu2" style="" />
				<?php endif; ?>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<!-- end Navigation -->

<!-- PROMO -->	
<?php if($this->countModules('promo')) : ?>
<div id="promo_outer">
	<div class="container_16">
		<jdoc:include type="modules" name="promo" style="xhtml" />
	</div>
</div>
<?php endif; ?>	
<div class="clear"></div>
<!-- END -->


	
<!-- Content + left -->
<div id="center">	
	
	<div id="<?php 
	$option = JRequest::getVar('option', null); 
	if($this->countModules('left') && ($option <> 'com_qcalc') ) { echo 'outer'; } 
		else { if ($option === 'com_qcalc') {
					echo 'outer-private';
				} else {
					echo 'outer2'; 
				}
			}
			
			?>">
	
		
		
	<div class="container_16">
		<?php if($this->countModules('left')) : ?>
			<div id="left" class="<? if($option === 'com_qcalc') : echo 'grid_5'; else: echo 'grid_6'; ?><?php endif; ?>">
				<jdoc:include type="modules" name="left" style="xhtml" />
			</div>
		<?php endif; ?>
	
	
	<div id="content" class="<? 
		if($this->countModules('left') && ($option === 'com_qcalc')) { echo 'grid_11'; } 
			else {
			if($this->countModules('left') && ($option <> 'com_qcalc')) { echo 'grid_10';}  else {echo 'grid_16';} 
				}
			?>">
			<?php if($this->countModules('quick')) : ?>
				<jdoc:include type="modules" name="quick" style="xhtml" />
			<?php endif; ?>
			
		<jdoc:include type="message" />	
		<jdoc:include type="component" />
		
	</div>	  
	</div>
	</div>
</div>		
		
	

<div class="clear"></div>
<!-- END -->	
	

<!-- FOOTER -->	
<div id="footer" class="overflow">	
	<div class="container_16">
	
	<div id="footer16">
		<div class="grid_4">
			
				<?php if($this->countModules('footer1')) : ?>
					<jdoc:include type="modules" name="footer1" style="xhtml" />
				<?php endif; ?>
				    
		</div>
		
		<div class="grid_4">
			
				<?php if($this->countModules('footer2')) : ?>
					<jdoc:include type="modules" name="footer2" style="xhtml" />
				<?php endif; ?>

		</div>
		
		<div class="grid_4">

				<?php if($this->countModules('footer3')) : ?>
					<jdoc:include type="modules" name="footer3" style="xhtml" />
				<?php endif; ?>

		</div>
		
		<div class="grid_4">

				<?php if($this->countModules('footer4')) : ?>
					<jdoc:include type="modules" name="footer4" style="xhtml" />
				<?php endif; ?>

		</div>
	
	</div>
	
	</div>
	<div class="clear"></div>
	<div class="container_16">
	<div id="ancillary">
	<!--noindex-->
			&copy;&nbsp;2011&mdash;&nbsp;2012&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Все права защищены. <a href="http://www.2log.ru" class="footer_link" rel="nofollow">www.2log.ru</a><br>
			Email.: <a href="mailto:info@2log.ru" class="footer_link">info@2log.ru</a><br><br>
			<p>Разработка&nbsp;&mdash;&nbsp;<a href="http://www.proinsurer.com.ua" target="_blank" rel="nofollow" class="footer_link">Proinsurer.com.ua</a><br>
	<!--/noindex-->
	</div>
	</div>

</div>

<!-- END FOOTER-->	

</div>
 
<div id="descript"></div>
<div id="progres"></div>

</body>
</html>